package com.ruoyi.fts.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 fts_order
 *
 * @author lumberer
 * @date 2024-10-15
 */
@Data
@TableName("fts_order")
public class FtsOrder extends BaseEntity{
private static final long serialVersionUID = 1L;

    /**  */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /** 订单编码 */
    @Excel(name = "订单编码")
    private String orderCode;
    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal price;
    /** 支付状态 */
    @Excel(name = "支付状态")
    private Integer payState;
    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer state;
    @Excel(name = "退款状态")
    private Integer refundState;
    /** 收货地址id */
    @Excel(name = "收货地址id")
    private Long shippingAddressId;
    /** 收货地址id */
    @Excel(name = "收货地址id")
    private String address;
    /**物流公司*/
    @Excel(name = "物流公司")
    private String logisticsCompany;
    /**物流单号*/
    @Excel(name = "物流单号")
    private String courierNumber;
    /** 收货地址*/
    @TableField(exist = false)
    private FtsUserAddress shippingAddress;
    /** 购买用户 */
    @Excel(name = "购买用户")
    private Long payUserId;
    /** 购买用户 */
    @TableField(exist = false)
    private FtsUser payUser;
    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    /** 子订单信息信息 */
    @TableField(exist = false)
    private List<FtsOrderList> ftsOrderListList;
}